package com.xuecheng.content;


import com.spring4all.swagger.EnableSwagger2Doc;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

@RefreshScope//熱部署==動態刷新
@EnableDiscoveryClient  //注冊中心
@EnableSwagger2Doc  //開啓swagger
@SpringBootApplication(scanBasePackages = {"com.xuecheng.common.exception","com.xuecheng.content", "com.xuecheng.openfeign.sentinel" })  //啓動類組合注解
@EnableFeignClients(basePackages = "com.xuecheng.openfeign")
public class ContentApplication {


	public static void main(String[] args) {
		SpringApplication.run(ContentApplication.class, args);
	}
}